home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / DockExtenders / LaunchPad / Source / IconView.h < prev    next >
Text File  |  1993-12-16  |  2KB  |  74 lines

  1. // IconView.h
  2.  
  3. /*
  4.  * Copyright 1991 RightBrain Software.  All rights reserved.
  5.  *
  6.  * No part of this code may be reproduced in any form, compiled
  7.  * or source code, nor used for any purpose without the express
  8.  * written permission of RightBrain Software.
  9.  * 
  10.  * Entered into the public domain 12/15/93 by RightBrain Software.
  11.  *
  12.  */
  13.  
  14. #import <sys/param.h>
  15. #import <appkit/View.h>
  16.  
  17. @interface IconView:View
  18. {
  19.     id    iconImage;
  20.     id    scrollR;
  21.     BOOL  multipleFiles, showFile;
  22.     char  filename[MAXPATHLEN];
  23.     char  appname[MAXPATHLEN];
  24.     char  dirname[MAXPATHLEN];
  25.     char  buff[MAXPATHLEN];
  26.     float deltaX, deltaY;
  27.     double scaleFactor;
  28.     BOOL  hasIcon;
  29.     int   autoLaunch;
  30.     int   isApplication;
  31.     int   isBogus;
  32.     id    myCheckBox;
  33.     id      myWideBox;
  34.     id    myLabelText;
  35.     id    myDirText;
  36.     id      stringTable;
  37. }
  38.  
  39. #define MISSING_FILE -1
  40.  
  41. /* instance methods */
  42. - initFrame:(NXRect *)frameRect;
  43. - (NXRect *)bounds;
  44. - setAppOrFile:(int)ilk;
  45. - (BOOL)acceptsFirstMouse;
  46. - (BOOL)hasIcon;
  47. - (const char *)filename;
  48. - (const char *)appname;
  49. - (const char *)dirname;
  50. - (int)autoLaunch;
  51. - tellName:sender;
  52. - setFilename:(const char *)name multipleSelected:(BOOL)multipleSelected;
  53. - toggleCheckBox:sender;
  54. - setMyCheckBox:theBox;
  55. - setMyWideBox:theBox;
  56. - myCheckBox;
  57. - myWideBox;
  58. - setMyLabelText:theBox;
  59. - myLabelText;
  60. - setMyDirText:theBox;
  61. - myDirText;
  62. - takeIconFromWindow:(int)windowNumber :(float)x :(float)y :(float)width
  63.   :(float)height;
  64. - takeIconFromData : (char *)data : (int)length;
  65. - takeIconFromTIFF : (char *)fname;
  66. - clear;
  67. - openSelf:sender;
  68. - openSelfIfAutoLaunch:sender;
  69. - highlightSelf:sender;
  70. - mouseDown:(NXEvent *)theEvent;
  71. - drawSelf:(NXRect *)rects :(int)rectCount;
  72.  
  73. @end
  74.